(function () {
	
	$('.nav-bar .address').hover(function () {
	
		getCity ();
	
	});
	
	function getCity () {
		var html='';
		$.get('/City',function (resData) {
		$('.nav-bar .address .choose').html('');
		
			
//			console.log(resData);
			$.each(resData.City,function (index,data) {
				
				html+='<div class="addressItem"><a href="">'+data+'</a></div>';
				
			});
			
		
		$('.nav-bar .address .choose').html(html);
		$('.nav-bar .address .choose .addressItem:first').addClass('active');
		});
		

		
		
	}
	
})()